package com.qingxin.park.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;
/**
 * 抽样检测
 * @author Administrator
 *
 */
@Entity
@Table(name="samplingData")
public class SamplingData extends com.qingxin.sys.entity.BaseEntity implements
java.io.Serializable {

	
	private static final long serialVersionUID = 4351466607760042262L;
	/**
	 * 
	 */
	private String samplingid;
	private String companyid;//受检单位
	private String companyName;
	private String jcdwid;//检测单位
	private String jcdwname;
	private String samplinglist;//抽样单
	private String examiningreport;//抽样报告
	private String samplingnum;//抽样编号
	private String source;//任务来源
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date issueTime;//签发时间
	private Date createTime;
	
	
	public SamplingData(String samplingid, String companyid,
			String companyName, String jcdwid, String jcdwname,
			String samplinglist, String examiningreport, String samplingnum,
			String source, Date issueTime, Date createTime) {
		super();
		this.samplingid = samplingid;
		this.companyid = companyid;
		this.companyName = companyName;
		this.jcdwid = jcdwid;
		this.jcdwname = jcdwname;
		this.samplinglist = samplinglist;
		this.examiningreport = examiningreport;
		this.samplingnum = samplingnum;
		this.source = source;
		this.issueTime = issueTime;
		this.createTime = createTime;
	}

	public SamplingData() {
		super();
		// TODO Auto-generated constructor stub
	}

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "samplingid", unique = true, nullable = false, length = 32)
	public String getSamplingid() {
		return samplingid;
	}


	public void setSamplingid(String samplingid) {
		this.samplingid = samplingid;
	}


	@Column(name = "companyid", length = 32)
	public String getCompanyid() {
		return companyid;
	}


	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}

	@Column(name = "companyname", length = 100)
	public String getCompanyName() {
		return companyName;
	}


	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	@Column(name = "samplinglist", length = 100)
	public String getSamplinglist() {
		return samplinglist;
	}


	public void setSamplinglist(String samplinglist) {
		this.samplinglist = samplinglist;
	}

	@Column(name = "examiningreport", length = 100)
	public String getExaminingreport() {
		return examiningreport;
	}


	public void setExaminingreport(String examiningreport) {
		this.examiningreport = examiningreport;
	}


	@Column(name = "samplingnum", length = 100)
	public String getSamplingnum() {
		return samplingnum;
	}


	public void setSamplingnum(String samplingnum) {
		this.samplingnum = samplingnum;
	}

	@Column(name = "source", length = 100)
	public String getSource() {
		return source;
	}


	public void setSource(String source) {
		this.source = source;
	}


	@Column(name = "issue_time", length = 23)
	public Date getIssueTime() {
		return issueTime;
	}


	public void setIssueTime(Date issueTime) {
		this.issueTime = issueTime;
	}

	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "jcdwid", length = 32)
	public String getJcdwid() {
		return jcdwid;
	}

	public void setJcdwid(String jcdwid) {
		this.jcdwid = jcdwid;
	}

	@Column(name = "jcdwname", length = 50)
	public String getJcdwname() {
		return jcdwname;
	}

	public void setJcdwname(String jcdwname) {
		this.jcdwname = jcdwname;
	}
	
	
}
